import request from '@/utils/request'

// 获取渲染数据
export function getWarehouseList(params) {
  return request({
    url: '/warehouse/page',
    method: 'GET',
    params
  })
}

// 修改仓库
export function changeWarehouse(data) {
  return request({
    url: '/warehouse',
    method: 'PUT',
    data
  })
}

// 新增仓库
export function addWarehouse(data) {
  return request({
    url: '/warehouse',
    method: 'POST',
    data
  })
}

